<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function abc(num) {
            var zou=num%5;
            if(zou>0&&zou<4){
                alert('上班');
            }else{
                alert('休息')
            }
        }
        abc(14);
    </script>
</head>
<body>

</body>
</html>